package com.itheima.io.file.demo02;

import java.io.File;

public class FileDemo02 {

    public static void main(String[] args) {

        File file = new File("D:\\2019.7.30heima\\就业班\\2019.8.25\\hmjava359\\hmjava359-day10\\itheima-io-file\\a.txt");
        File file1 = new File("D:\\2019.7.30heima\\就业班\\2019.8.25\\hmjava359\\hmjava359-day10\\itheima-io-file");

        System.out.println(file.getAbsolutePath());
        System.out.println(file1.getAbsolutePath());
        System.out.println("----------------getAbsolutePath()---------------------");

        System.out.println(file.getPath());
        System.out.println(file1.getPath());
        System.out.println("------------------getPath()------------------------------------");

        System.out.println(file.getName());
        System.out.println(file1.getName());
        System.out.println("-------------------getName()------------------------------");

        System.out.println(file.length());
        System.out.println(file1.length());
        System.out.println("-------------------.length()----------------------");



    }
}
